<meta charset="UTF-8">
<body>
	<h3 style="text-align: center;">成绩查询</h3>
	<div class="container" style="padding: 10px;">
		<form action="aaa" method="post" class="form-horizontal">
			<div class="form-group">
				<label class="col-md-1 control-label">选择班级:</label>
				<div class="col-md-2">
					<input class="form-control" id="aaclass" type="text" />
				</div>
			</div>
			<hr />
		</form>
	</div>
	<div id="table" ></div>
</body>
<script type="text/javascript">
$(function(){
	$('#aaclass').combobox({
			url:'banji/list',
			valueField:'id',
			textField:'name',
		onchange:function(id){
				var bjId=id;
				if(bjId){
					$('#table').show();
					$('#table').load('grade/bjChange',{bjId:bjId},function () {
					$('#aaa').datagrid({
							path:'grade', 
							fit:true,
							fitColumns: true,
							singleSelect:true,
							search: false,
							searchUrl:'grade',
							buttons:[],
							pagination: false,

							})
					});
			}else{
				$('#table').hide();
			}
			}
		});
})
            
</script>